
 
 
 
 
 
 L a b e l   H o m i n g _ A r m 2 
 
 	 S l o t   5   =   R e s e t 
 
 	 W a i t   S e c o n d s   0 . 0 2 
 
 	 S l o t   5   =   0 
 
 	 L a b e l   C o u n t e r 3 
 
 	 	 S l o t ( 5 )   =   S l o t ( 5 )   +   1 
 
 	 	 W a i t   S e c o n d s   0 . 0 1 
 
 	 	 I f   S l o t ( 5 )   >   6 0 0 	   O r   S l o t ( 1 0 )   =   0     	 	 ' s w i t c h   n o r m a l l y   c l o s e d   a n d   s i g n a l   U P 
 
 	 	 	 L a b e l   L o o p S w i t c h A r m 2 
 
 	 	 	 	 S l o t ( 5 )   =   S l o t ( 5 )   -   1 
 
 	 	 	 	 W a i t   S e c o n d s   0 . 0 5 
 
 	 	 	 	 I f   S l o t   ( 1 0 )   <   1 0 0 0 
 
 	 	 	 	 	 G o t o   L o o p S w i t c h A r m 2 
 
 	 	 	 	 E n d I f 
 
 	 	 	 	 S l o t   5   =   R e s e t 
 
 	 	 	 	 W a i t   S e c o n d s   0 . 0 2 
 
 	 	 	 	 S l o t   5   =   2 5 0 
 
 	 	 	 R e t u r n 
 
 	 	 	 
 
 	 	 E n d I f 
 
 	 G o t o   C o u n t e r 3 
 
 R e t u r n 
 
 
 
 
 
 ' E X E C   v 1   =   R n d   :   V 2   =   V 1   +   9 9   :   V 3   =   V 2   +   1 0 0 0 
 
 